#!/bin/sh
#
# for /proc/net files, fill in metric values in a line with unique integers
# for example:
# Ip: 2 64 59100 0 7 0 0 0 55500 19322 0 12 0 0 0 0 0 0 0
# becomes
# Ip: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#

awk '
    { printf "%s",$1
      for (i = 2; i <= NF; i++)
	printf " %d",i-1
      print ""
    }'
